package com.sky.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
// 读取配置文件中配置项，封装到对象中
@ConfigurationProperties(prefix = "sky.alioss")//与yml中配置的前缀保持一致
@Data
public class AliOssProperties {
//  阿里云oss配置项
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;

}
